package com.vpx.server.framework.utils;

/**
 * @author liuks
 * @title: vpx
 * @module:
 * @description: 生成密码
 * @date 2021/09/11 16:46
 */
public class PasswordUtil {
    private final static String PASSWORD_KEY = "0679A7fB3a5145e1C9f2a70739aMb442";

    private final static String DEFAULT_PASSWORD = "123456";

    public static String getPassword(String password){
        return Md5Util.getMd5Code(password + PASSWORD_KEY);
    }

    public static String getDefaultPassword(){
        return getPassword(DEFAULT_PASSWORD);
    }

    public static void main(String[] args) {
        System.out.println(getPassword("000000"));
    }
}
